#include "cRingRequest.h"

#include <sstream>
#include <Poco/DOM/Document.h>
#include <Poco/DOM/NodeIterator.h>
#include "misc/Interface.h"
#include "misc/Debug.h"
#include "client/Client.h"
#include "client/net/cAnnounce.h"
/*********************************************************/
void cRingRequest::execute()
{
	// The client shouldn't be executing this message
}
/*********************************************************/
std::string cRingRequest::serialize() const
{
	Client& c = Client::Instance();
	std::ostringstream		ostr;
	id = c.getID();

	ostr << "<GS id='" << id << "'>";
	ostr << "<RingRequest>" << ringName << "</RingRequest>";
	ostr << "</GS>";

	return( ostr.str() );
}
/*********************************************************/
void cRingRequest::deserialize(Poco::XML::NodeIterator& it)
{
	// The client shouldn't be receiving this message...
}
/*********************************************************/
void cRingRequest::setRingName(const std::string& name)
{
	ringName = name;
}
/*********************************************************/
std::string cRingRequest::getRingName() const
{
	return ringName;
}
/*********************************************************/
